package lp.chess.ui;

import java.awt.*;

public abstract class FormDrawable implements IDrawable {
	protected Rectangle m_rect ;
	protected Color m_color;
	
	public FormDrawable(Color color, Point pos, Dimension dim){
		this.m_color = color;
		this.m_rect = new Rectangle(pos,dim);
	}
	
	public abstract void draw(Graphics g) ;
	
	public Rectangle getRectangle(){
		return (Rectangle) m_rect.clone();
	}
	
}